const Client = require("scp2");
const path = require("path");

Client.scp(
  path.join(__dirname, "..", "dist"),
  {
    host: "主机地址",
    username: "用户名",
    password: "密码",
    path: "主机上的绝对路径"
  },
  err => {
    console.log("sss:", err);
  }
);
